package com.tesis_2.UI;

import com.example.t2_clientback.R;
import com.example.t2_clientback.R.layout;
import com.example.t2_clientback.R.menu;
import com.tesis_2.MO.MORestaurant;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class UIMenu extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_uimenu);
		 
	((Button)findViewById(R.id.btnRestaurantes_menu)).setOnClickListener(
			new OnClickListener() {
	             public void onClick(View v) {
	            	 
	            	Intent intent = new Intent(v.getContext(), UIRestaurants.class);
	 				startActivity(intent);
	             }
	         }		
	);
	
	
	((Button)findViewById(R.id.btnLocales_menu)).setOnClickListener(
			new OnClickListener() {
	             public void onClick(View v) {
	            	 
	            	Intent intent = new Intent(v.getContext(), UILocales.class);
	 				startActivity(intent);
	             }
	         }		
	);
	
	
	((Button)findViewById(R.id.btnReservas_menu)).setOnClickListener(
			new OnClickListener() {
	             public void onClick(View v) {
	            	 
	            	Intent intent = new Intent(v.getContext(), UIAceptarReservaRestaurante.class);
	 				startActivity(intent);
	             }
	         }		
	);
	
	((Button)findViewById(R.id.btnPlatos_menu)).setOnClickListener(
			new OnClickListener() {
	             public void onClick(View v) {
	            	 
	            	Intent intent = new Intent(v.getContext(), UIPlatos.class);
	 				startActivity(intent);
	             }
	         }		
	);
	((Button)findViewById(R.id.btnReportes_menu)).setOnClickListener(
			new OnClickListener() {
	             public void onClick(View v) {
	            	 
	            	Intent intent = new Intent(v.getContext(), UIPlatosMasConsumidosRestaurante.class);
	 				startActivity(intent);
	             }
	         }		
	);
	
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_uimenu, menu);
		return true;
	}
	
	

}
